package baiqi.sishen.community.execption;

/**
 * 自定义报错enum
 *
 * @author 兕神
 * @version 1.0
 * DateTime: 2023/5/1
 */

public enum CustomizeErrorCode implements ICustomizeErrorCode {

    QUESTION_NOT_FOUND(2001, "你找的问题已不存在，换个问题试试吧！！！"),
    COMMENT_NOT_FOUND(2002, "你找的评论已不存在，换个评论试试吧！！！"),
    TARGET_PARAM_NOT_FOUND(2003, "未选中任何问题或评论！！！"),
    TYPE_PARAM_WRONG(2004, "类型错误或不存在！！！"),
    SYSTEM_WRONG(2005, "服务器发热了，稍后再试试吧！！！"),
    USER_NOT_FOUND(2006, "你还未登录，请登录在操作吧！！！"),
    COMMENT_CONTENT_IS_NULL(2007, "评论内容不得为空哦！！！"),
    READ_NOTIFICATION_FAIL(2008, "兄弟你这是读别人的信息呢？"),
    NOTIFICATION_NOT_FOUND(2009, "消息莫非是不翼而飞了？"),
    FILE_UPLOAD_FAIL(2010, "图片上传失败"),
    THUMB_FAIL(2011, "点赞/收藏失败"),
    THUMB_NOT_AGAIN(2012, "不能重复点赞/收藏哦");

    //自定义报错码
    private Integer code;
    //报错内容
    private String message;

    CustomizeErrorCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
